package com.navcoo.todolist.pojo.dao;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 待办数据DAO
 *
 * @author Navcoo
 * @date 2024-02-12
 */
@Data
@TableName("todo_data")
public class TodoDataDAO {

    @TableId(value = "inst_id",type = IdType.ASSIGN_ID)
    private String instId;

    @TableField(value = "title")
    private String title;

    @TableField(value = "is_done")
    private Boolean isDone;

    @TableField(value = "created_at")
    private LocalDateTime createdAt;

    @TableField(value = "updated_at")
    private LocalDateTime updatedAt;

    @TableField(value = "is_delete")
    private Boolean isDelete;
}
